<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width,user-scalable=no"name="viewport">
<title>店家招募</title>
<link rel="stylesheet" type="text/css" href="<?php echo C('WEB_URL');?>Public/customer/css/base.css" />
<link rel="stylesheet" type="text/css" href="<?php echo C('WEB_URL');?>Public/customer/css/base.css" />
<link rel="stylesheet" type="text/css" href="<?php echo C('WEB_URL');?>Public/customer/css/style.css" />
<link rel="stylesheet" type="text/css" href="<?php echo C('WEB_URL');?>Public/customer/css/bootstrap.min.css" />
<script type="text/javascript" charset="UTF-8" src="<?php echo C('WEB_URL');?>Public/customer/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="<?php echo C('WEB_URL');?>Public/customer/js/bootstrap.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="<?php echo C('WEB_URL');?>Public/customer/js/script.js"></script>

</head>
<body>
<div id="box">
 <div class="navbar navbar-default navbar-fixed-top">
  <header>
   <h1><a href="more.html"><span class="glyphicon glyphicon-menu-left"></span></a></h1>
   <p class="title">店家招募</p>
  </header>
 </div><!--navbar-fixed-top-->
 <div class="photoTop">
  <img src="<?php echo C('WEB_URL');?>Public/customer/images/apply_03.jpg"  />
 </div><!--photoTop-->
 <div class="recruit">
  <div class="apply">
   <button type="button" id="ClickMe">申请成为省钱卡店家</button>
  </div><!--apply-->
  <div id="goodcover"></div>	
  <div id="code">
   <div class="close1"><a href="javascript:void(0)" id="closebt"><img src="<?php echo C('WEB_URL');?>Public/customer/images/close.gif"></a>  </div><!--code-->
  <div class="goodtxt">
   <p>登录</p>
   <form action="<?php echo U('User/busniss');?>" method="post" name="form">
    <input type="tel" placeholder="请输入手机号" name="tel" />
    <a><input type="submit" class="phone" value="登录" onClick="return yanzheng()" name="submit" /></a>
   </form>
  </div><!--goodtxt-->
 </div><!--recruit-->
 <div class="navbar navbar-default navbar-fixed-bottom">
   <footer>
    <dl>
     <dt><a href="<?php echo U('index');?>"><img src="<?php echo C('WEB_URL');?>Public/customer/images/mores_15.jpg" /></a></dt>
     <dd><a href="<?php echo U('index');?>l">首页</a></dd>
    </dl>
    <dl>
     <dt><a href="<?php echo U('recommends',['uid'=>$_SESSION[user_id]]);?>"><img src="<?php echo C('WEB_URL');?>Public/customer/images/mores_17.jpg" /></a></dt>
     <dd><a href="<?php echo U('recommends',['uid'=>$_SESSION[user_id]]);?>">推荐有奖</a></dd>
    </dl>
    <dl>
     <dt><a href="<?php echo U('more');?>"><img src="<?php echo C('WEB_URL');?>Public/customer/images/mores_19.jpg" /></a></dt>
     <dd><a href="<?php echo U('more');?>" class="current">更多</a></dd>
    </dl>
   </footer>
  </div><!--/navbar-->
</div><!--box-->
<script type="text/javascript">
//微信判断header是否显示
if(isWeiXin()){ 
//alert("====");
$(".title").hide();
} 
else{
//alert("+++++");
}	
function yanzheng()
	{
		var tel=form.tel.value;
		if(tel.length==0)
		{
			alert("请输入正确的手机号！");
			form.tel.focus();
			return false;
		}		
		return true;
	}
//弹出层
$(function() {
    //alert($(window).height());
    $('#ClickMe').click(function() {
        $('#code').center();
        $('#goodcover').show();
        $('#code').fadeIn();
    });
    $('#closebt').click(function() {
        $('#code').hide();
        $('#goodcover').hide();
    });
	$('#goodcover').click(function() {
        $('#code').hide();
        $('#goodcover').hide();
    });
    /*var val=$(window).height();
	var codeheight=$("#code").height();
    var topheight=(val-codeheight)/2;
	$('#code').css('top',topheight);*/
    jQuery.fn.center = function(loaded) {
        var obj = this;
        body_width = parseInt($(window).width());
        body_height = parseInt($(window).height());
        block_width = parseInt(obj.width());
        block_height = parseInt(obj.height());
        left_position = parseInt((body_width / 2) - (block_width / 2) + $(window).scrollLeft());
        if (body_width < block_width) {
            left_position = 0 + $(window).scrollLeft();
        };
        top_position = parseInt((body_height / 2) - (block_height / 2) + $(window).scrollTop());
        if (body_height < block_height) {
            top_position = 0 + $(window).scrollTop();
        };
        if (!loaded) {
            obj.css({
                'position': 'absolute'
            });
            obj.css({
                'top': ($(window).height() - $('#code').height()) * 0.5,
                'left': left_position
            });
            $(window).bind('resize', function() {
                obj.center(!loaded);
            });
            $(window).bind('scroll', function() {
                obj.center(!loaded);
            });
        } else {
            obj.stop();
            obj.css({
                'position': 'absolute'
            });
            obj.animate({
                'top': top_position
            }, 200, 'linear');
        }
    }
})
</script>
</body>
</html>